package com.woniuxy.ssm.mapper;

import com.woniuxy.ssm.bean.AdminBean;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultType;
import org.apache.ibatis.annotations.Select;

/**
 * @author linke
 * @version 1.0
 * @className: SystemMapper
 * @description: 系统持久层接口
 * @date 2021/11/15 1:21
 */
public interface SystemMapper {
    /**
     *
     * 根据登录名以及密码查询账号
     * @param loginName
     * @param password
     * @return
     */
    @ResultType(AdminBean.class)
    @Select("select id,admin_name as adminName from admin_info where login_name = #{loginName} and password = #{pwd} and status = 0")
    AdminBean login(@Param("loginName") String loginName, @Param("pwd") String password);
}
